<?php
session_start();

require_once($_SERVER['DOCUMENT_ROOT'].'/mpd/config/config.php');


$nip = $_SESSION['NIP'];

//baca tabel core
$query3=mysql_query("SELECT * FROM core where NIP =".$nip." ORDER BY ID_CORE DESC LIMIT 1  ");
$row3 = mysql_fetch_row($query3);
			
//baca tabel corporate
$query4=mysql_query("SELECT * FROM corporate where NIP =".$nip." ORDER BY ID_CORPORATE DESC LIMIT 1 ");
$row4 = mysql_fetch_row($query4);

//baca tabel grade
$query5=mysql_query("SELECT * FROM grade where NIP =".$nip." ORDER BY ID_GRADE DESC LIMIT 1" );
$row5 = mysql_fetch_row($query5);

$query6=mysql_query("SELECT * FROM job where NIP =".$nip." ORDER BY ID_JOB DESC LIMIT 1 ");
$row6 = mysql_fetch_row($query6);

?>